#!/bin/bash
read -p "input two float nunber:" num1 num2
if (( `echo "${num1}==${num2}" |bc` ));then
#if [[ $num1 == $num2 ]];then
#字符串的比较不能解决位数问题，用bc计算就可以	
	echo "$num1=$num2"
else
	if (($(echo "$num1>$num2" |bc)!=0));then
		echo "$num1>$num2"
	else 
		echo "$num1<$num2"
	fi
fi
